import request from '@/utils/request2.js'

//获取不良分布图
export function getBadDistributionMap(query) {
	return request({
		url: '/api/postloan/PerformingLoan/getBadDistributionMap',
		method: 'get',
		data: query
	})
}

// 获取验证码
export function getCodeImg() {
	return request({
		url: '/captchaImage',
		headers: {
			isToken: false
		},
		method: 'get',
		timeout: 20000
	})
}


// 查询不良贷款详细
export function getPerformingLoan(id) {
	return request({
		url: '/api/postloan/PerformingLoan/getById?id=' + id,
		method: 'get'
	})
}